package edu.bu.cs673.superkids123.parents.model;

import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import edu.bu.cs673.superkids123.children.model.Activity;
import edu.bu.cs673.superkids123.children.model.Answer;

@Entity
@Table(name="activitytype")
public class ActivityType {
	/**
	 * @author Abdelghani Bhalla
	 */
	
	@Id @GeneratedValue
	@Column(name="ActivityTypeID")
	private int id;
	
	@Column(name="ActivityTypeName")
	private String name;
	
	@Column(name="ActivityTypeDescription")
	private String description;
	
	@Column(name="ActivityTypeIsActive")
	private boolean isActive;
	
	@OneToMany(mappedBy="activitytype")
	private Set<Activity> activities = new HashSet<Activity>();
	
	
	 
	public Set<Activity> getActivities() {
		return activities;
	}
	public void setActivities(Set<Activity> activities) {
		this.activities = activities;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public boolean isActive() {
		return isActive;
	}
	public void setActive(boolean isActive) {
		this.isActive = isActive;
	}
	
	public ActivityType(){
		
	}

}
